package com.example.admin.controller;

import com.example.admin.Dto.PendingTaskDto;
import com.example.admin.Vo.PendingTaskVO;
import com.example.admin.base.PageResponse;
import com.example.admin.base.ResponseResult;
import com.example.admin.service.Applicationservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/applications")
public class ApplicationWeb {
    @Autowired
    Applicationservice applicationservice;
    @PostMapping("/selectByPage")
    public ResponseResult selectByPage(PendingTaskDto pendingTaskDto){
        PageResponse<PendingTaskVO> pendingTaskVOPageResponse = applicationservice.selectByPage(pendingTaskDto);
        return ResponseResult.success(pendingTaskVOPageResponse);
    }
}
